Git Log Pretty Customisation | Git Alias Colourful

[Solved] Git Log Pretty Customisation | Git Alias Colourful | Webassembly - Code Explorer | yomemimo.com
Question : git log pretty customisation | (git alias) colourful

Answered by : holy

$ git config --global alias.logline "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
$ git logline
this will:
-one commit per line
-show graph of commits
-abbreviated commit IDs
-dates relative to now
-show commit references (like git log --decorate)
-lots of colour
-show author of the commit

Source : https://ma.ttias.be/pretty-git-log-in-one-line/ | Last Update : Sun, 12 Jun 22

Answers related to git log pretty customisation | git alias colourful

Code Explorer Popular Question For Webassembly